package com.yami.shop.bean.vo;

import com.yami.shop.bean.model.Post;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class PostsVO extends Post {

    private static final long serialVersionUID = 1L;

    //点赞数
    private Long likeCount;
    //评论数
    private Long commentCount;
     // 用户名
    private String nickName;
    public PostsVO convertFrom(Post post) {
        return new PostsVO().convertFrom(post);
    }
}
